<template>
    <AutoPage :type="2" @getScale="getScale" title="重庆法院全流程网上办案数据">
        <div class="content-box">
            <div class="left">
                <dv-border-box-1 class="boder-box">
                    <MapChart @chooseMap="chooseMap" />
                    <MapDetail />
                </dv-border-box-1>
            </div>
            <div class="right">
                <dv-border-box-8 class="border-box">
                    <div class="right-title">全流程网上办案数据</div>
                    <ChartSwiper @clickRow="clickRow"/>
                </dv-border-box-8>
            </div>
        </div>
        <PopModal ref="pop"/>
    </AutoPage>
</template>

<script>
import AutoPage from "@/components/AutoPage.vue";
import MapChart from './charts/map-chart.vue'
import MapDetail from './charts/map-detail.vue'
import ChartSwiper from './charts/chart-swiper.vue'
import PopModal from './pop-modal.vue'

export default {
    name: 'ReformInnovation',
    components: {
        AutoPage, MapChart, MapDetail, ChartSwiper,PopModal
    },
    data() {
        return {
            scale: 1,
        }
    },
    methods: {
        getScale(e) {
            this.scale = e;
        },
        chooseMap(name) {
            console.log(name)
        },
        clickRow(){
            this.$refs.pop.dialogVisible = true
        }
    }
}
</script>

<style lang="less" scoped>
.content-box {
    flex: 1;
    width: 100%;
    display: flex;
    margin: 40px 0;

    .left {
        width: 554px;
        height: 100%;
        margin: 0 40px;
    }

    .right {
        flex: 1;
        margin: 0 40px 0 0;

        .right-title {
            height: 74px;
            display: flex;
            align-items: center;
            padding: 0 30px;
            font-size: 30px;
            color: #23CEFD;

        }
    }
}
</style>